App = new Backbone.Marionette.Application();
App.debug = true;

App.addInitializer(function() {
	this.module('dialogModule').start({
      region: this.mainRegion
   });
});

App.on('initialize:before', function() {
	if (App.debug) console.log('App::initialize:before event invoked');
});
App.on('initialize:after', function() {
	if (App.debug) console.log('App::initialize:after event invoked');
});
App.on('start', function(options) {
	if (App.debug) console.log('App::start event invoked');
});

App.addRegions({
  mainRegion: 'body'
});
